<?php
require_once '../config/conf.inc.php';

check_passwd();

function check_passwd()
{
	$pass = trim($_GET['pass']);
	$account = LoginManager::get_login_user();
	if (empty($account))
	{
		echo "false";
		return;
	}
	$type = LoginManager::get_login_type();

	$ret = AccountManager::check_login($account, $pass, $type, $err);
	if ($ret)
		echo "true";
	else
		echo "false";

	return;
}

?>